import request from '@/utils/request'

// 查询施肥机v1地址列表
export function listFertilizerDistributorV1Address(query) {
  return request({
    url: '/module/fertilizerDistributorV1Address/list',
    method: 'get',
    params: query
  })
}

// 查询施肥机v1地址详细
export function getFertilizerDistributorV1Address(id) {
  return request({
    url: '/module/fertilizerDistributorV1Address/' + id,
    method: 'get'
  })
}

// 新增施肥机v1地址
export function addFertilizerDistributorV1Address(data) {
  return request({
    url: '/module/fertilizerDistributorV1Address',
    method: 'post',
    data: data
  })
}

// 修改施肥机v1地址
export function updateFertilizerDistributorV1Address(data) {
  return request({
    url: '/module/fertilizerDistributorV1Address',
    method: 'put',
    data: data
  })
}

// 删除施肥机v1地址
export function delFertilizerDistributorV1Address(id) {
  return request({
    url: '/module/fertilizerDistributorV1Address/' + id,
    method: 'delete'
  })
}
